<?php

namespace Website\Modules\Frontend\Controllers;

use Phalcon\Logger;
use Phalcon\Logger\Adapter\File as FileAdapter;


class Test2Controller extends ControllerBase
{

    public function indexAction()
    {

    }


    public function testlogAction()
    {
//        var_dump($this->request->getURI());
//        var_dump(APP_PATH);
        $logger = new FileAdapter(APP_PATH."/logs/test.log");
        $data = [
            'id'=>123,
            'name'=>'name'
        ];

        $logger->debug("it is : ". print_r($data,true));
    }


    public function testAction()
    {
        $this->view->disable();
        print($this->H1());
    }


}

